﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RadarA
{
    public partial class FullScreen : Form
    {
        public FullScreen()
        {
            InitializeComponent();
        }

        private void FullScreen_Load(object sender, EventArgs e)
        {
            int widthradarPanel = Radarpanel.Width;
            int widthControlPanel = ControlPanel.Width;


            if(this.WindowState == FormWindowState.Maximized)
            {
                string aa = this.Size.ToString();
                button44.Height = 50;
                button44.Width = 150;
                button44.Font = new Font(button44.Font.FontFamily, 16);
            }

            Load3vongTron();
        }

        private void Load3vongTron()
        {
            foreach (Control ctrl in Radarpanel.Controls)
            {
                ctrl.Dispose();
            }
            UserControl user = new User3VongTron();
            //user.Size = Radarpanel.Size;
            user.Width = Radarpanel.Width;
            user.Height = Radarpanel.Height;
            Radarpanel.Controls.Add(user);
        }

        private void ControlPanel_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button20_Click(object sender, EventArgs e)
        {
            foreach (Control ctrl in Radarpanel.Controls)
            {
                ctrl.Dispose();
            }
            UserControl user = new User3VongTron();
            //user.Size = Radarpanel.Size;
            user.Width = Radarpanel.Width;
            user.Height = Radarpanel.Height;
            Radarpanel.Controls.Add(user);
        }

        private void button24_Click(object sender, EventArgs e)
        {
            foreach (Control ctrl in Radarpanel.Controls)
            {
                ctrl.Dispose();
            }
            UserControl user = new User3VongTron();
            //user.Size = Radarpanel.Size;
            user.Width = Radarpanel.Width;
            user.Height = Radarpanel.Height;
            Radarpanel.Controls.Add(user);
        }

        private void btnTatmoVongTron_Click(object sender, EventArgs e)
        {
            RadaA1.TatMoVongTron = true;
        }

        private void btntatvongtrong_Click(object sender, EventArgs e)
        {
            RadaA1.TatMoVongTron = false;
        }

        private void btnmovongtron_Click(object sender, EventArgs e)
        {
            RadaA1.TatMoVongTron = true;
        }

        private void button57_Click(object sender, EventArgs e)
        {
            foreach (Control crtl in Radarpanel.Controls)
            {
                crtl.Dispose();
            }
            Control user = new UserControl3vongtron();
            user.Size = Radarpanel.Size;
            Radarpanel.Controls.Add(user);
        }

        private void button61_Click(object sender, EventArgs e)
        {
            foreach (Control crtl in Radarpanel.Controls)
            {
                crtl.Dispose();
            }
            Control user = new UserControl5vongtron();
            user.Size = Radarpanel.Size;
            Radarpanel.Controls.Add(user);
        }
    }
}
